import { axios } from '@/utils/request'

const api = {
  addTopicType: '/content/add-topic-type',
  getTopicType: '/content/get-topic-type',
  editTopicType: '/content/edit-topic-type',
  delTopicType: '/content/del-topic-type',
  editTopicTypeShow: '/content/edit-topic-type-show',
  getVideoList: '/content/get-video-list',
  createVideo: '/content/add-video',
  editVideo: '/content/edit-video',
  delVideo: '/content/del-video',
  getTopic: '/content/get-topic-list',
  createTopic: '/content/add-topic',
  editTopic: '/content/edit-topic',
  delTopic: '/content/del-topic',
  editTopicShow: '/content/edit-topic-show',
  createGoodsService: '/content/add-goods-service',
  editGoodsService: '/content/edit-goods-service',
  delGoodsService: '/content/del-goods-service',
  getGoodsService: '/content/get-goods-service',
  addAboutArticle: '/content/add-about-article',
  getAboutArticle: '/content/get-about-article',
  editAboutArticle: '/content/edit-about-article',
  delAboutArticle: '/content/del-about-article',
  articleBatchDels: '/content/article-batch',
  videoBatchDels: '/content/video-batch',
  topicBatchDels: '/content/topic-batch',
  videoDels: '/content/video-batch',
  topicTypeBatch: '/content/topic-type-batch'

}

export default api

export function topicTypeBatch (parameter) {
  return axios({
    url: api.topicTypeBatch,
    method: 'post',
    data: parameter
  })
}
export function videoDels (parameter) {
  return axios({
    url: api.videoDels,
    method: 'post',
    data: parameter
  })
}
export function topicBatchDels (parameter) {
  return axios({
    url: api.topicBatchDels,
    method: 'post',
    data: parameter
  })
}
export function videoBatchDels (parameter) {
  return axios({
    url: api.videoBatchDels,
    method: 'post',
    data: parameter
  })
}
export function articleBatchDels (parameter) {
  return axios({
    url: api.articleBatchDels,
    method: 'post',
    data: parameter
  })
}
export function createAboutArticle (parameter) {
  return axios({
    url: api.addAboutArticle,
    method: 'post',
    data: parameter
  })
}
export function getAboutArticle (parameter) {
  return axios({
    url: api.getAboutArticle,
    method: 'get',
    params: parameter
  })
}
export function editAboutArticle (parameter) {
  return axios({
    url: api.editAboutArticle,
    method: 'post',
    data: parameter
  })
}
export function delAboutArticle (parameter) {
  return axios({
    url: api.delAboutArticle,
    method: 'get',
    params: parameter
  })
}
export function getGoodsService (parameter) {
  return axios({
    url: api.getGoodsService,
    method: 'get',
    params: parameter
  })
}
export function createGoodsService (parameter) {
  return axios({
    url: api.createGoodsService,
    method: 'post',
    data: parameter
  })
}
export function editGoodsService (parameter) {
  return axios({
    url: api.editGoodsService,
    method: 'post',
    data: parameter
  })
}

export function delGoodsService (parameter) {
  return axios({
    url: api.delGoodsService,
    method: 'get',
    params: parameter
  })
}

export function editTopicShow (parameter) {
  return axios({
    url: api.editTopicShow,
    method: 'get',
    params: parameter
  })
}

export function getTopic (parameter) {
  return axios({
    url: api.getTopic,
    method: 'get',
    params: parameter
  })
}
export function createTopic (parameter) {
  return axios({
    url: api.createTopic,
    method: 'post',
    data: parameter
  })
}
export function editTopic (parameter) {
  return axios({
    url: api.editTopic,
    method: 'post',
    data: parameter
  })
}
export function delTopic (parameter) {
  return axios({
    url: api.delTopic,
    method: 'get',
    params: parameter
  })
}
export function createTopicType (parameter) {
  return axios({
    url: api.addTopicType,
    method: 'post',
    data: parameter
  })
}
export function getTopicType (parameter) {
  return axios({
    url: api.getTopicType,
    method: 'get',
    params: parameter
  })
}
export function editTopicType (parameter) {
  return axios({
    url: api.editTopicType,
    method: 'post',
    data: parameter
  })
}
export function delTopicType (parameter) {
  return axios({
    url: api.delTopicType,
    method: 'get',
    params: parameter
  })
}
export function editTopicTypeShow (parameter) {
  return axios({
    url: api.editTopicTypeShow,
    method: 'post',
    data: parameter
  })
}
export function getVideoList (parameter) {
  return axios({
    url: api.getVideoList,
    method: 'get',
    params: parameter
  })
}
export function createVideo (parameter) {
  return axios({
    url: api.createVideo,
    method: 'post',
    data: parameter
  })
}
export function editVideo (parameter) {
  return axios({
    url: api.editVideo,
    method: 'post',
    data: parameter
  })
}
export function delVideo (parameter) {
  return axios({
    url: api.delVideo,
    method: 'get',
    params: parameter
  })
}
